<!--轮播图列表-->
<template>
<!--  <el-carousel>-->
<!--    <el-carousel-item v-for="item in data">-->
<!--      <img :src="item.img"/>-->
<!--    </el-carousel-item>-->
<!--  </el-carousel>-->
  <el-card class="box-card" v-for="item in data" v-model="dialogVisible">
    <img :src="item.img" @click="out">
  </el-card>
</template>
<script setup>
import {ref} from "vue";

const data = [
  {
    img:'imgs/banner1.jpg'
  },
  {
    img:'imgs/banner2.jpg'
  },
  {
    img:'imgs/banner3.jpg'
  }
      ];

const dialogVisible = ref(false);

const out = ()=>{
  if (window.confirm('是否删除此图片')){
    //dialogVisible.value = false;
  }
}
</script>


<style scoped>

</style>